# include "../include/Work.h"
# include "../include/LogStreamInterface.h"

ZDSJ::Work::Work(const std::string& _data, LogStreamInterface* _worker) : m_data(new std::string(_data)), m_worker(_worker)
{
	
}

void ZDSJ::Work::work() const
{
	this->m_worker->output(*this->m_data);
}

ZDSJ::Work::~Work()
{
	delete this->m_data;
}
